<template>
<div class="home-banner">
  <xys-swiper :sliders="sliders" auto-play :duration="2000"/>
</div>
</template>

<script setup>
import {reactive, ref} from "vue";
import {findBanner} from "@/api/home";

const sliders=ref([])
findBanner().then(({result})=>{
  sliders.value=result
})
</script>

<style scoped lang="less">
.home-banner {
  width: 1240px;
  height: 500px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 98
}
  .xys-swiper{
    :deep(.swiper-btn.prev){
      left: 270px;
    }
  }
</style>